/* pfs01Login.h
 *
 * --
 * Copyright (c) 2012, Christophe Huriaux
 * Distributed under the terms of the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 * --
 */

#ifndef MCPACKET_pfs01_H
#define MCPACKET_pfs01_H

#include <string>
#include <iostream>
#include <stdint.h>
#include <vector>
#include <packet/McPacket.h>

class pfs01Login : public McPacketFromServer
{
    int32_t pid;
    std::string unused1;
    int64_t seed;
    std::string type;
    int32_t mode;
    int8_t dimension;
    int8_t difficulty;
    uint8_t height;
    uint8_t maxplayers;

public:
    pfs01Login();

    int16_t setField(uint8_t field, void* value);
    unsigned int length();

    int32_t getPid();
    std::string getUnused1();
    int64_t getSeed();
    std::string getType();
    int32_t getMode();
    int8_t getDimension();
    int8_t getDifficulty();
    uint8_t getHeight();
    uint8_t getMaxplayers();

};

#endif // MCPACKET_pfs01_H
